<!DOCTYPE html>
<html>
<head>
<title><g:layoutTitle default="Grails" /></title>
<link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
<link rel="shortcut icon"
	href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
<g:layoutHead />
<g:javascript library="application" />
</head>
<%-- 
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        <div id="grailsLogo"><a href="http://localhost:8080/KiPastelSys/"><img src="${resource(dir:'images',file:'grails_logo.png')}" alt="Grails" border="0" /></a></div>
        <g:layoutBody />
        
    </body>
    --%>

<body>
	<g:render template="/layouts/header" />
	<sec:ifLoggedIn>
		<sec:ifAllGranted roles="ROLE_ADMIN"><g:render template="/layouts/menuAdmin"/>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_FUNCIONARIO"><g:render template="/layouts/menuFuncionario"/>
		</sec:ifAllGranted>
	</sec:ifLoggedIn>
	
	<g:layoutBody />
	<g:render template="/layouts/footer" />
</body>

</html>